-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fixes:#7837: Add isolationMethods and vlan to TrafficTypeResponse #8151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
api/src/main/java/org/apache/cloudstack/api/response/TrafficTypeResponse.java
Show resolved
Hide resolved
api/src/main/java/org/apache/cloudstack/api/response/TrafficTypeResponse.java
Outdated
Show resolved
Hide resolved
1c10c58
to
0b1950b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some remarks
api/src/main/java/org/apache/cloudstack/api/response/TrafficTypeResponse.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/cloudstack/api/response/TrafficTypeResponse.java
Show resolved
Hide resolved
@madhukar93 you can also consider to add a unit test and/or a functional test to cover the API response. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #8151 +/- ##
============================================
- Coverage 27.85% 22.45% -5.41%
+ Complexity 29309 22441 -6868
============================================
Files 5195 5061 -134
Lines 366568 344607 -21961
Branches 53597 49627 -3970
============================================
- Hits 102109 77375 -24734
- Misses 250398 256079 +5681
+ Partials 14061 11153 -2908
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
will do after clarifying the schema |
18714f8
to
23d1b77
Compare
api/src/main/java/org/apache/cloudstack/api/command/admin/usage/ListTrafficTypesCmd.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rohityadavcloud There don't seem to be too many functional tests for the cloud-api package to refer. Need suggestions for what the test scenario should be. Just validating the response schema would be very close the what the unit test is already checking.
@blueorangutan package |
@harikrishna-patnala a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7562 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @madhukar93 can you check if we can add a small marvin test.
@madhukar93 the integration test scenario would to be call the API and check the response against expected values of the API response. When changing the response type, you may need to make changes to Marvin library if a utility is used to call the api and process response; otherwise you would use the API client to make the API call and from its response object you'd get keys/entities to compare. When you rebuilt cloudstack (entirely), apidocs and marvin API stubs will be regenerated (which covers the case of say adding new api param or responses, or changing response type class etc). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks mostly good, one remark and needs testing
aa14677
to
cbba3d3
Compare
@harikrishna-patnala @kishankavala @rohityadavcloud @vishesh92 are your comments addressed? @blueorangutan package |
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7789 |
@blueorangutan test |
@shwstppr a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
[SF] Trillian test result (tid-8363)
|
305af22
to
bf7bd8c
Compare
…e.isolationMethods
Co-authored-by: dahn <[email protected]>
Co-authored-by: dahn <[email protected]>
Co-authored-by: dahn <[email protected]>
bf7bd8c
to
cc72ada
Compare
@blueorangutan package |
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7874 |
@blueorangutan test |
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
[SF] Trillian test result (tid-8436)
|
@vishesh92 @harikrishna-patnala @kishankavala are your concerns addressed. Can you please re-review? |
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
Description
This PR addresses #7837. It adds all fields to Traffic type response that are required while adding traffic type to a physical network using addTrafficType command
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
How Has This Been Tested?
How did you try to break this feature and the system with this change?
Nothing besides running test automation